import { createRouter, createWebHashHistory } from 'vue-router'
import layout from './layout'

const router = createRouter({
	history: createWebHashHistory(),
	routes: [{
		path: '/',
		name: 'layout',
		redirect: layout[0].path,
		component: () => import('../layout/'),
		children: layout
	}, {
		path: '/login',
		component: () => import('../pages/login/')
	}]
})

export default router
